<%@page import="entities.Users"%>

<% Users user = (Users) request.getAttribute("user_edit");%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

?<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>daftar</title>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<style media="all" type="text/css">@import "css/all.css";</style>
	<!--[if lt IE 7]><style media="screen" type="text/css">@import "css/ie6.css";</style><![endif]-->
    <script defer type="text/javascript" src="pngfix.js"></script>
</head>
<body>
	<div id="page">
		<div id="header">
			<div class="background">
				<h1><a href="#">CeritaUnyil</a></h1>
				<ul>
					<li><a href="login.jsp">Home</a></li>
					<li class="active"><a href="about.jsp">Daftar Yuk</a></li>
					<li><a href="services.html">Tentang Kami</a></li>
					<li><a href="contact.html">T&J</a></li>
				</ul>
			</div>
		</div>
		<div id="content">
			<div id="leftcol">
				<div class="block">
					<div class="block-top"></div>
					<div class="block-content">
						<h2>Edit Profil Member<span></span></h2>
					<form method='post' name="coba" action='ProsesUpdateUser'>
                                <fieldset>
                                    <table>
                                        <tr>
                                            <td>
                                                <fieldset>
                                                    <legend><h4>Profil</h4></legend>
                                                    <table>
                                                    <tr>
                                                                <td>Nama Lengkap</td>
                                                                <td>:</td>
                                                                <td><input id="element_1" name="nama" class="element text medium" type="text" maxlength="255" value="<%=user.getNama()%>"/></td>
                                                      </tr>
                                                            <tr>
                                                                <td>Alamat</td>
                                                                <td>:</td>
                                                                <td><input id="element_1" name="alamat" class="element text medium" type="text" maxlength="255" value="<%=user.getAlamat()%>"/></td>
                                                            </tr>
                                                            <tr>
                                                                <td>Jenis Kelamin</td>
                                                                <td>:</td>
                                                                <td>
                                                                    <select name="gender">
                            
                            <option value="1" <% if(user.getGender() == 1){out.print("selected='selected'");}%> >Laki- Laki</option>
                            <option value="2" <% if(user.getGender() == 2){out.print("selected='selected'");}%> >Perempuan</option>
                        </select>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Pilihan Pertanyaan</td>
                                                                <td>:</td>
                                                                <td>
                                                                    <select name="pertanyaan">
                                                                        <option value="1" <% if(user.getPertanyaan() == 1){out.print("selected='selected'");}%>>Apa alamat rumah anda sekarang?</option>
                                                                        <option value="2" <% if(user.getPertanyaan() == 2){out.print("selected='selected'");}%>>Berapa nomor telepon anda?</option>
                                                                        <option value="3" <% if(user.getPertanyaan() == 3){out.print("selected='selected'");}%>>Siapa nama lengkap ibu anda?</option>
                                                                    </select>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Jawaban Pertanyaan</td>
                                                                <td>:</td>
                                                                <td><input id="element_4" name="jawaban" class="element text medium" type="text" maxlength="255" value="<%=user.getJawaban()%>"/></td>
                                                            </tr>
                                                            <tr>
                                                                <td>Foto</td>
                                                                <td>:</td>
                                                                <td><input type='file' name='foto' /></td>
                                                            </tr>
                                                  </table>
                                              </fieldset>
                                          </td>
                                      </tr>
                                            <tr>
                                                <td>
                                                    <fieldset>
                                                        <legend><h4>Akun Pengguna</h4></legend>
                                                        <table>
                                                            <tr>
                        <td>Username</td>
                        <td>:</td>
                        <td><input id="element_4" name="username" class="element text medium" type="text" maxlength="255" value="<%=user.getUsername()%>"/></td>
                    </tr>
                    <tr>
                        <td>Password</td>
                        <td>:</td>
                        <td><input id="element_3" type='password' name='password' value="<%=user.getPassword()%>" /></td>
                    </tr>
                    <tr>
                    <tr>
                        <td>Ulangi Password</td>
                        <td>:</td>
                        <td><input id="element_2" type='password' name='repeat_password' value="<%=user.getPassword()%>" /></td>
                    </tr>
                        <td></td>
                        <td></td>
                        <td>
                        <input type="hidden" name="iduser" value="<%=user.getId()%>">
                    <input type="hidden" name="form_id" value="318396" />	
                        <input type='submit' value='Submit' oneclick="return coba"/></td>
                    </tr>
                    </table>
                    </fieldset>
                    </td>
        </tr>
                </table>
                </fieldset>


        </form>
                  </div>
					<div class="block-bottom"></div>
				</div>


			</div>
			<div id="rightcol">
				<div class="block">
					<div class="block-top"></div>
					<div class="block-content">
						<h3>The <span>Store!</span></h3>
						<ul>
							<li><a href="#">The History</a></li>
							<li><a href="#">Meet The Staff</a></li>
							<li><a href="#">Contacting Us</a></li>
						</ul>
					</div>
					<div class="block-bottom"></div>
				</div>
				<div class="block">
					<div class="block-top"></div>
					<div class="block-content">
						<h3><span>Sign Up!</span></h3>
						<form id="signup-form" action="#">
							<fieldset>
								<label>Email Address</label>
								<input type="text" />
								<input class="submit" type="submit" value="Sing Up!" />
							</fieldset>
						</form>
					</div>
					<div class="block-bottom"></div>
				</div>
			</div>
		</div>
		<div id="footer">
			<p>�2009 The DelliStore. Design by <a href="http://www.dellustrations.com/templates.html">Dellustrations.com</a> for <a href="http://www.smashingmagazine.com">Smashing Magazine</a></p>
			<ul>
				<li><a href="home.jsp">Home</a></li>
				<li><a href="about.jsp">About Us</a></li>
				<li><a href="services.html">Services </a></li>
				<li><a href="contact.html">Contact us</a></li>
			</ul>
		</div>
	</div>
</body>
</html>